<?php


namespace App\Models\CharterBus;

use App\Models\Model;

class CharterBus extends Model
{
    protected $table = 'akbus_charter_bus';

    protected $fillable = [
        'id',
        'license_plate_num',
        'date_time',
        'start_bus_time',
        'created_at',
        'updated_at',
    ];

    /**
     * 不可批量赋值的属性。
     *
     * @var array
     */
    protected $guarded = [
    ];

    /**
     * 类型转化
     *
     * @var array
     */
    protected $casts = [
    ];

    /**
     * 隐藏的字段
     *
     * @var array
     */
    protected $hidden = [
    ];

    /**
     * 拼接车牌号字符
     *
     * @param  string  $value
     *
     * @return string
     */
    public function getLicensePlateNumAttribute($value)
    {
        return '陕G'.$value;
    }
}
